package com.hxd.dao;

import com.hxd.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DepartmentDao {
    //查询素有部门
    @Select("select ID,depname,email from department")
    List<Department> selectAlldepartment();

    //根据id 查找部门
    @Select("select ID,depname,email from department where ID=#{id}")
    Department selectOnedepartment(int id);
}
